﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using System.Windows;
using System.Windows.Controls;
using System.Windows.Data;
using System.Windows.Documents;
using System.Windows.Input;
using System.Windows.Media;
using System.Windows.Media.Imaging;
using System.Windows.Shapes;

namespace BancoSim.Ventanas_Modales
{
    /// <summary>
    /// Lógica de interacción para cwSiNo.xaml
    /// </summary>
    public partial class cwSiNo : Window
    {
        bool decision;
        public cwSiNo(string msj)
        {
            InitializeComponent();
            txbMsj.Text = msj;
        }

        private void btnSi_Click(object sender, RoutedEventArgs e)
        {
            decision = true;
            this.Close();
        }

        private void btnNo_Click(object sender, RoutedEventArgs e)
        {
            decision = false;
            this.Close();
        }

        public bool ResultMsj() { return decision; }
    }
}
